package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    User findByUsername(String username);

    Boolean editPwd(String username, Map map);

    PageResult findPage(QueryPageBean queryPageBean);

    void add(User user, Integer[] roleIds);

    List<Integer> findRoleIdsByUserId(Integer userId);

    User findById(Integer userId);

    void edit(User user, Integer[] roleIds);

    void deleteById(Integer id);

    List<User> findAllUser();

    List<Menu> findAllMenu(String username);

    com.itheima.pojo.User findByTelephone(String telephone);

    void editPwdByTelandNewPwd(String telephone, String password);

    void changeStatus(Map<String, Object> map,String username);
}
